package com.yuyou.train.user.vo.req;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;

/**
 * @author 
 */
public class ReqCommentAdd{


	@ApiModelProperty(value = "（感想，资源，班级）ID", required = true)
    private String foreignId;

	@ApiModelProperty(value = "父ID", required = false)
    private String parentId;

	@ApiModelProperty(value = "课程ID", required = false)
	private String lessonId;

	@NotBlank(message="type不能为空")
	@ApiModelProperty(value = "类型：02：课程，03：班级", required = false)
    private String type;

	@NotBlank(message="resourceType 不能为空")
	@ApiModelProperty(value = "资源类别：01：视频，02：音频，03：文件，04：试卷，05：作业（自评作业），06：作业（提交型作业），07感想", required = true)
	private String resourceType;

	@ApiModelProperty(value = "内容", required = true)
    private String content;

	@ApiModelProperty(value = "级别", required = true)
    private Integer level;
    
	@ApiModelProperty(value = " 打星", required = false)
    private int star;

	@ApiModelProperty(value = " 来源URL", required = false)
    private String fromUrl;

	public String getForeignId() {
		return foreignId;
	}

	public void setForeignId(String foreignId) {
		this.foreignId = foreignId;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getLessonId() {
		return lessonId;
	}

	public void setLessonId(String lessonId) {
		this.lessonId = lessonId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getResourceType() {
		return resourceType;
	}

	public void setResourceType(String resourceType) {
		this.resourceType = resourceType;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public int getStar() {
		return star;
	}

	public void setStar(int star) {
		this.star = star;
	}

	public String getFromUrl() {
		return fromUrl;
	}

	public void setFromUrl(String fromUrl) {
		this.fromUrl = fromUrl;
	}
    
}